/**
 * @PackageName:PACKAGE_NAME
 * @author:andyLiu
 * @DateTime:2021/1/4 11:07
 * @Description:[TODO]输入当前模块作用
 **/

import com.sofwin.service.UserService;
import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName: App
 * @Description: TODO
 * @Author: andyliu
 * @Date: 2021/1/4 11:07
 * @Version: 1.0
 **/
public class App {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
       for(int i=0;i<30;i++) {
           UserService userService = (UserService) context.getBean("userService");
           System.out.println("***********************" + userService.getUserName());
       }
    }
}
